#include "fxcc/imgui/Editor.h"
#include "fxcc/core/graph/common/MeshJack.h"

using namespace fxcc::graph::common;
using namespace fxcc::imgui;



template <>
bool Editor::Edit<MeshJack::Desc>(const std::string& label, MeshJack::Desc& inst)
{
    ImGui::Text("vertices %d", inst.m_GeoData.vertices.size());
    ImGui::Text("Indices %d", inst.m_GeoData.indices32.size());
    ImGui::Text("bones1 %d", inst.m_SkinnedMeshData.bones1s.size());
    return false;
}

template <>
bool Editor::Edit<MeshJack>(const std::string& label, MeshJack& inst)
{
    EditInst<fxcc::graph::common::VertexType>("m_VertexType", inst.m_VertexType);
    EditInst<fxcc::graph::common::IndexType>("m_IndexType", inst.m_IndexType);
    EditInst<fxcc::graph::common::ModeType>("m_ModeType", inst.m_ModeType);
    EditInst<int>("m_NumVertices", inst.m_NumVertices);
    EditInst<int>("m_NumIndices", inst.m_NumIndices);

    return false;
}
